<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <ul>
      
    </ul>
  </div>
  <script src="./vue.js"></script>
  <script src="./axios.js"></script>
  <script>
   
    const vm = new Vue({
      el: '#app',
      data: {
        items: []
      },
      methods: {
        fetchItems(){
          // 发送post请求 https://api.it120.cc/conner/
          axios.post('https://api.it120.cc/conner/shop/goods/list/v2',{
            a: 10,
            b: 20
          }, {
            headers: {
              token: 'dwfegrthy67u890'
            }
          }).then(res => {
            console.log(res);
          })
        }
      },
      created(){
        this.fetchItems();
      }
    })
  </script>
</body>
</html>

